<style type="text/css">
    .main
    {
        background-color: lightgreen;
    }
</style>

<span class="main">
	Lorem
	<div style="display: inline; border: solid 1px black; padding: 10px;">
		sqt
	</div>
	amet.
</span>